{% extends "layout.html" %}
{% block body %}
<form method="post">
    <div style="float:right;padding:5px;font-size:24px;color:#888;">
    {{po.percent_translated()}}{{gettext("%%")}}
    </div>
    <div style="padding:5px;">
        {{filename}}
        
    <div>    
    
    
    <table id="pofile">
    <tr>
    <th></th>    
    <th>{{gettext("Fuzzy")}}</th>     
    <th>{{gettext("Original string")}}</th>
    <th>{{gettext("Translation")}}</th>
    <th>{{gettext("Comment")}}</th>    
    </tr>


    {% for entry in entries %}

        <tr class="
        {% if entry.obsolete %} obsolete {% endif %}
        {% if entry.translated() %}     
            translated
        {% else %}
            {% if "fuzzy" in entry.flags %}
                fuzzy
            {% else %}
                untranslated
            {% endif %}
        {% endif %}
        ">
        <td class="status">&nbsp;</td>
        <td class="fuzzy">
            {% if not entry.obsolete %}
                <input type="checkbox" name="f{{loop.index0}}" {% if "fuzzy" in entry.flags %}checked="checked"{% endif %}/>
            {% endif %}
        </td>    
        <td class="msgid">{{entry.msgid}}</td>
        <td class="msgstr">
            {% if entry.obsolete %}
                {{entry.msgstr}}
            {% else %}
                <textarea name="e{{loop.index0}}">{{entry.msgstr}}</textarea>
            {% endif %}
        </td>
        <td class="comment"><textarea name="c{{loop.index0}}">{{entry.comment}}</textarea></td>
        </tr>

    {% endfor %}
    </table>
    
    
    
    <div style="padding:5px;">
        <input type="button" name="cancel" value="{{gettext("cancel")}}" onclick="window.location.href = window.location.href+'';" /> 
        <input type="submit" name="save" value="{{gettext("save")}}">
    </div>
</form>
{% endblock %}
